<?php

class Damages_Methods_Response_GetDamagesList extends Damages_Methods_Response {

  /**
   *
   * @var Damages_Methods_Data_CarDamageList[] 
   */
  public $damages = array();
  /**
   *
   * @var int
   */
  public $count;

  public function setData($carDamages,$totalCount) {
    foreach ($carDamages as $carDamage) {
      $this->damages[] = new Damages_Methods_Data_CarDamageList($carDamage);
    }
    $this->count = $totalCount;
  }

}